/*
 * @Author: 大辉 dbstt@qq.com
 * @Date: 2022-11-15 16:47:28
 * @LastEditors: 大辉 dbstt@qq.com
 * @LastEditTime: 2023-05-06 18:02:48
 * @FilePath: /intelligentQuery/src/main.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from "react";
import {
  HashRouter,
  Route,
  Routes,
  Link,
  useRoutes,
  Outlet,
  RouterProvider,
} from "react-router-dom";
import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import store from "./redux";
import { ConfigProvider } from "antd";
import zhCN from "antd/locale/zh_CN";
import App from "./App";
import { PersistGate } from "redux-persist/integration/react";
import { persistStore } from "redux-persist";
let persistor = persistStore(store);

import "./index.css";

ReactDOM.createRoot(document.getElementById("root")).render(
  // <React.StrictMode>
  <HashRouter>
    <Provider store={store}>
      <ConfigProvider locale={zhCN}>
        <PersistGate loading={null} persistor={persistor}>
          <App />
        </PersistGate>
      </ConfigProvider>
    </Provider>
  </HashRouter>
  // </React.StrictMode>
);
